@charset "utf-8";
/* -------------------------------------------------
 * nav css
 * ------------------------------------------------- */

// 开关
//---------------------------------
$topNavSwitch: true !default; //顶部导航
// top nav
//---------------------------------
$topNavHeight: 36px !default;
$topNavAPadding: 15px !default; //a的左右padding
$topNavTextColor: $gray lighten($gray, 20%) #535353 $themeColor !default; //文本色：默认，激活/滑过
$topNavBgColor: #333 !default; //背景色
@if $topNavSwitch {
    .wrap-top-bar {
        background-color: $topNavBgColor;
        z-index: $zindexFixedTopbar;
    }
    #top-nav {
        font-family: "Microsoft Yahei", Arial, sans-serif;
        height: 100%;
        ul {
            position: relative;
            margin-left: 20px;
            height: 100%;
        }
        li {
            float: left;
            // display: inline-block;
            vertical-align: bottom;
            position: relative;
            z-index: 20;
            height: 100%;
            display: table;
            a {
                color: nth($topNavTextColor, 3);
            }
            a.channel-tit {
                display: table-cell;
                vertical-align: middle;
                font-size: 20px;
                padding: 10px 50px 0;
                position: relative;
                text-align: center;
                small {
                    position: absolute;
                    margin-top: -10px;
                    font-size: 12px;
                    color: $subThemeColor;
                }
            }
        }
        li a:hover,
        .active a {
            text-decoration: none;
            color: $themeColor;
        }
        li.keep-open {
            .drop-menu {
                dd {
                    max-height: 3000px;
                    max-width: 3000px;
                    opacity: 1;
                    transform: translateY(0px);
                    visibility: visible;
                }
            }
        }
        span.only-bottom-border {
            height: 2px;
            width: 80px;
            position: absolute;
            left: 50px;
            bottom: 1px;
            background-color: $themeColor;
        }
        .drop-menu {
            display: table-cell;
            vertical-align: middle;
            position: relative;
            dt {
            }
            dd {
                vertical-align: baseline;
                color: #000;
                position: absolute;
                left: 17px;
                top: 69px;
                visibility: hidden;
                max-height: 0;
                max-width: 0;
                box-shadow: 0 0 2px rgba(0,0,0,0.1);
                opacity: 0;
                transform: translateY(40px);
                transition: transform 0.5s ease 0s, opacity 0.2s ease 0s, max-height 0s step-end 0s, max-width 0s step-end 0s, padding 0s step-end 0s;
            }
            span {
                display: block;
                a {
                    display: inline-block;
                }
            }
            .drop-list {
                background-color: rgba(255,255,255,0.9);
                background-color: #f8f8f8 \9;
                padding: 10px;
                width: 337px;
                position: relative;
                
                &.moveUp {
                    opacity: 1;
                    transform: translateY(0px);
                }
                .dp-item {
                    float: left;
                }
                .dp-item-img {
                    display: inline-block;
                    float: left;
                    width: 106px;
                    height: 106px;
                    margin: 3px;
                    background-color: $white;
                    overflow: hidden;
                    position: relative;
                    &:after {
                        content: "";
                        background-color: transparent;
                        display: block;
                        position: absolute;
                        border: 3px solid $grayColor;
                        left: 0;
                        top: 0;
                        width: 100px;
                        height: 100px;
                        opacity: 0;
                        transform: scale(1.1);
                        transition: transform 0.5s ease 0s, opacity 0.5s ease 0s;
                    }
                    img {
                        transition: transform 0.5s ease 0s;
                        @include imgCenter;
                    }
                    &:hover {
                        &:after {
                            opacity: 1;
                            transform: scale(1);
                        }
                    }
                }
                .dp-item-detail {
                    background-color: rgba(255,255,255,0.6);
                    background-color: #f8f8f8 \9;
                    top: 100%;
                    left: 0;
                    position: absolute;
                    padding: 13px;
                    line-height: 1.5;
                    opacity: 0;
                    visibility: hidden;
                    transform: translateY(40px);
                    transition: transform 0.5s ease 0s, opacity 0.5s ease 0s;
                    width: 100%;
                    @include prefixer(box-sizing,border-box);
                    &.moveUp {
                        opacity: 1;
                        visibility: visible;
                        transform: translateY(0px);
                    }
                    span {
                        display: block;
                        background-color: $white;
                        img {
                            max-width: 100%;
                        }
                    }
                    
                    .drop-item-msg {
                        color: $defaultColor;
                        h3 {
                            font-size: 14px;
                            line-height: 1.5;
                            font-weight: bold;
                            text-align: justify;
                            text-align-last: left;
                        }
                        p {
                            font-size: 14px;
                        }
                    }
                }
                .dp-Info .dp-item-detail {
                    span {
                        display: inline-block;
                        float: left;
                        width: 158px;
                        height: 158px;
                        margin-right: 8px;
                        position: relative;
                        background-color: $white;
                        img{
                            @include imgCenter;
                            max-height: 100%;
                            max-width: 100%;
                        }
                    }
                }
                .dp-Zol {
                    .dp-item-detail span {
                        display: block;
                        width: 100%;
                    }
                    .dp-item-img {
                        width: 162px;
                        height: 100px;
                        background-color: #fff;
                        &:after{
                            width: 156px;
                            height: 94px;
                        }
                        img{
                            max-height: 80%;
                            max-width: 80%;
                        }
                    }
                    .drop-item-msg{
                        margin-top: 10px;
                    }
                }
            }
        }
    }
}
